package com.controller;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;

import com.service.CommentService;

@Controller
public class CommentCtroller {

	@Autowired
	private CommentService commentService;
	
	@RequestMapping("/deleteComment.do")
	public String delete(Integer commentId ) {
		commentService.deleteComment(commentId);
		System.out.println(commentId+"=========================");
		return "/index"; 
	}
}
